package com.bawei.mvvm.respository

import androidx.lifecycle.LiveData
import com.bawei.mvvm.entity.User
import com.bawei.mvvm.http.ApiResponse
import com.bawei.mvvm.http.ApiService
import com.bawei.mvvm.http.RetrofitManager
import okhttp3.RequestBody
import javax.inject.Inject

class LoginRepository @Inject constructor(var apiService: ApiService){
//    @Inject
//    lateinit var apiService:ApiService
//    @Inject //自己写的仓库类，采用普通方式
//    constructor()
    //登陆
    fun login(requestBody: RequestBody): LiveData<ApiResponse<User>> {
        return   apiService.login(requestBody)

    }

}